import tushare as ts
import pandas as pd
from pandas import DataFrame, Series
from threading import Thread
from config_mysql import ConfSQL


def current_prices(stock_code):
    data = ts.get_realtime_quotes(stock_code)

    print(data.loc[0]['name'])


class GetTodayStock(object):

    def __init__(self):
        # self.conf_sql = ConfSQL()
        pass

# if __name__ == '__main__':
#     thread_fc = Thread(target=GetTodayStock().current_prices, args=('600010',))
#     thread_fc.start()
